﻿-- =============================================
-- Author:		Andreas Könighofer (IT-eXperience)
-- Create date: 14.01.2009
-- Description:	Updates existing MachineType.
-- =============================================
CREATE PROCEDURE [dbo].[UpdateMachineType]
	-- Add the parameters for the stored procedure here
	@MachineTypeID SMALLINT
	, @MachineTypeName NVARCHAR(100) = NULL
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    UPDATE [BigDays2009].[dbo].[MachineType]
	SET [MachineTypeName] = ISNULL(@MachineTypeName, MachineTypeName)
	WHERE MachineTypeID = @MachineTypeID
END

---- end script UpdateMachineType stored procedure ----

---- start script UpdateRentalService stored procedure ----

